$(function(){
	$("#loginButton").click(function(){
		var name = $("#loginName").val();	
		var password = $("#loginPassword").val();
		$.ajax({
			url:"/dailySupport/user/login.do",
			type:"post",
			data:{"loginName":name,"loginPassword":password},
			dataType:"json",
			success:function(result){
				if(result.status==0){//成功
					window.location.href="index.jsp";
				} else {
					alert(result.msg);
				}
			},
			error:function(){
				//异常处理
				alert("登录异常");
			}
		});
	});
	
});

function check (){
}